package service;

import dao.Student;
import dao.Teacher;

public class UpdateService {
    public static boolean updateStudentName(String sname,String id){
        return Student.updateNameById(sname,id);
    }

    public static boolean updateStudentInfo(String school,String major,String grade,String degree,String gender,String birthday,String id){
        return Student.updateInfoById(school,major,grade,degree,gender,birthday,id);
    }

    public static boolean updateStudent(String nickname,String school,String major,String grade,String degree,String gender,String birthday,String headPath,String id){
        return Student.updateAllById(nickname,school,major,grade,degree,gender,birthday,headPath,id);
    }

    public static boolean updateTeacher(String nickname,String school,String major,String grade,String degree,String gender,String birthday,String headPath,String id){
        return Teacher.updateAllById(nickname,school,major,grade,degree,gender,birthday,headPath,id);
    }

}
